/*
 * acooly.cn Inc.
 * Copyright (c) 2017 All Rights Reserved.
 * create by ouwen
 * date:2017-09-22
 *
 */
package com.yiji.fintech.musfinance.service;

import com.acooly.core.common.service.EntityService;
import com.acooly.core.utils.Money;
import com.yiji.fintech.musfinance.entity.TransactionStatistics;

import java.util.List;

/**
 * center_transaction_statistics Service接口
 *
 * Date: 2017-09-22 14:45:07
 * @author ouwen
 *
 */
public interface TransactionStatisticsService extends EntityService<TransactionStatistics> {
    /**
     * 渠道统计
     * @param statistics
     * @return
     */
    public List<TransactionStatistics> statistic(TransactionStatistics statistics);

    /**
     * 增加
     * @param id
     * @param amount
     * @return
     */
    public int increment(String id,Money amount);

    /**
     * 减少
     * @param id
     * @param amount
     * @return
     */
    public int decrease(String id,Money amount);
}
